# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo06
# Description:
# Author:       98745
# Date:         2019/3/3
#-------------------------------------------------------------------------------

class cal():
    def c(self,ex):
        self.value=eval(ex)
    def p(self):
        print('result:{}'.format(self.value))
class my():
    def p(self):
        print('计算结果：{}'.format(self.value))
class cal1(cal,my):
    pass
class cal2(my,cal):
    pass
c=cal1()
c.c('1+3*5')
c.p()
print(cal1.__bases__)

c2=cal2()
c2.c('1+3*5')
c2.p()
print(cal2.__bases__)

# print('-------')
# m=my()
# m.p()